import VueRouter from 'vue-router'
import MySetting from './components/MySetting';
import MyFavorite from './components/MyFavorite';
import Search from './components/Search';
import Calc from './components/Calc';
import Compare from './components/Compare';
import MyTeam from './components/MyTeam';
import Load from './components/Load';



const routes = [
    {
        path: '/',
        redirect: 'Search', //重定向
        meta: {
            keepAlive: true,
        },
    },

    {
        path: '/MySetting',
        name: 'MySetting',
        component: MySetting,
    },
    {
        path: '/MyFavorite',
        name: 'MyFavorite',
        component: MyFavorite,
    },
    {
        path: '/Search',
        name: 'Search',
        component: Search,
    },
    {
        path: '/Calc',
        name: 'Calc',
        component: Calc,
    },
    {
        path: '/Compare',
        name: 'Compare',
        component: Compare,
    },
    {
        path: '/MyTeam',
        name: 'MyTeam',
        component: MyTeam,
    },
    {
        path: '/Load',
        name: 'Load',
        component: Load,
    }
]

const router = new VueRouter({
    routes
});

export default router;
